<!--
 * @Autor: dingxiaolin
 * @Date: 2022-09-20 10:46:39
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2022-10-14 13:24:54
-->
<template>
    <view>
        <web-view
            :webview-styles="webviewStyles"
            :src="mapUrl"
            @message="postMessageFun"
        ></web-view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            webviewStyles: {
                progress: {
                    color: "#FF3333",
                },
            },
            mapUrl: "/static/html/index.html",
        };
    },
    mounted() {},
    methods: {
        postMessageFun(e) {
            console.log("aaaa", e);
            plus.storage.setItem("data", "" + JSON.stringify(e.detail.data));
        },
    },
};
</script>

<style></style>
